﻿#ifndef COLWIDGET_H
#define COLWIDGET_H

#include <QWidget>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QKeyEvent>
#include <QtSql>
#include <QStringList>
#include <QPrinter>

#include "coladdapprovaldialog.h"
#include "coleditappdialog.h"
#include "coladdobjectdialog.h"
#include "coleditobjectdialog.h"
#include "coladdlookdialog.h"
#include "coleditlookdialog.h"
#include "coladdrecorddialog.h"
#include "coleditrecorddialog.h"

namespace Ui {
class COLwidget;
}

class COLwidget : public QWidget
{
    Q_OBJECT

public:
    explicit COLwidget(QWidget *parent = 0);
    ~COLwidget();
    static int identification;
    void LendOrConsult();
    QString saveHtmlToPDFconsult(QString Q);
    void COLSwapTwoRow(int selectRow, int targetRow);
    void COLclear();
//public slots:
    void COLshowrelate();
    void COLshowobject();
    void COLshowlook();
    void COLshowrecord();
private slots:
    void COLshowsort(int clounm);

    void on_lendrbtn_clicked();

    void on_consultrbtn_clicked();

    void on_addbtn_clicked();

    void on_lendstart_clicked();

    void on_lendend_clicked();

    void on_returnstart_clicked();

    void on_returnend_clicked();

    void on_deletebtn_clicked();

    void on_editbtn_clicked();

    void on_consult_cellClicked(int row, int column);

    void on_seekbtn_clicked();

    void on_addcobject_clicked();

    void on_deletecobject_clicked();

    void on_editcobjectbtn_clicked();

    void on_addclook_clicked();

    void on_deleteclook_clicked();

    void on_editcreadbtn_clicked();

    void on_caddrecordbtn_clicked();

    void on_cdeleterecordbtn_clicked();

    void on_ceditrecordbtn_clicked();

    void on_cupbtn_clicked();

    void on_cdownbtn_clicked();

    void on_previewbtn_clicked();

signals:
    void sendData(QStringList);
    void sendDa(int);
private:
    Ui::COLwidget *ui;
};

#endif // COLWIDGET_H
